<?php

namespace Biz\model\advertisement;

use Doraemon\pockets\constInterface\Position\PositionRulesConstInterface;
use Doraemon\pockets\publicTrait\CheckConstants;

class MPositionRules extends MBaseDbModel implements PositionRulesConstInterface
{
    const _CONFIG_FILE_ = 'db_position';

    const _CONFIG_SELECT_ = 'db_position';

    const _DATABASE_ = 'hhz_position';

    const _TABLE_NAME = 'position_rules';


    const STATUS_NORMAL = 1;// 状态为正常
    const STATUS_DELETE = 9;// 状态为删除

    const _CONSTANTS_TYPE_PREFIX = 'RULE_TYPE_';


    const MODULE_TYPE_POSITION = 0;//资源位 √
    const MODULE_TYPE_KA = 1;//KA资源位 废弃
    const MODULE_TYPE_PUSH_TASK = 2;//推送任务 √
    const MODULE_TYPE_TOPIC_TAB = 3;//话题tab √
    const MODULE_TYPE_TOPIC_BANNER = 4;//话题banner √
    const MODULE_TYPE_BIG_TAG = 5;//大标签 √
    const MODULE_TYPE_CONF_MANAGER = 6;//公共配置 conf_manager √
    const MODULE_TYPE_AB_TEST = 7; //AB实验 √
    const MODULE_TYPE_BOTTOM_NAV = 8; //底部导航 √
    const MODULE_TYPE_BATCH_SEND = 9; //系统消息下发 √
    const MODULE_TYPE_MSG_SEND = 10; //私信群发 √
    const MODULE_TYPE_IFTTT_TASK = 11; //ifttt任务 √
    const MODULE_TYPE_TOP_TOPIC = 12; //话题分群置顶
    const MODULE_TYPE_SEARCH_KEYWORD = 13;//话题tab
    const MODULE_TYPE_TASK_GROUP = 14;//任务系统-任务组
    const MODULE_TYPE_FLOW_PACKAGE = 15; // 流量加油包
    const MODULE_TYPE_CREATORS_TOPIC = 16; //创作者中心有奖话题
    const MODULE_TYPE_CREATORS_MY_RIGHT = 17; //创作者中心我的权益
    const MODULE_TYPE_CREATORS_MY_RIGHT_CORNER = 18; //创作者中心我的权益角标
    const MODULE_TYPE_CUSTOM = 20; // 自定义用户分群

    use CheckConstants;

    public static array $moduleMap = [
        self::MODULE_TYPE_POSITION => '资源位',
        self::MODULE_TYPE_PUSH_TASK => '推送任务',
        self::MODULE_TYPE_BATCH_SEND => '系统消息下发',
        self::MODULE_TYPE_MSG_SEND => '私信群发',
        self::MODULE_TYPE_IFTTT_TASK => 'ifttt任务',
    ];
}